home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Clinton - Portrait of Victory
/
PORTRAIT OF VICTORY.BIN
/
cltpc256
/
eagle41.txt
< prev
next >
Wrap
Text File
|
1992-12-22
|
6KB
|
282 lines
; Photo Album
clearscr 0
pload @title 1
palette 1
putup 23 433 p1
pfree 1
pload ebpaim 1
putup 603 0 p1
pfree 1
fload ibm16 1
set dnum 1
set xd 607+((34-width(@dnum))/2)
set xt 607+((34-width(@tnum))/2)
color 126
text @xd 455 @dnum
text 617 441 "of"
text @xt 425 @tnum
set pnum @first
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
input1:
waitkey
getkey k
if @k==chr(72)$chr(1)||@k==chr(73)$chr(1) ;UPARROW or PGUP
color 0
rect 0 0 600 425
rect 607 455 637 470
if @pnum<@last
set pnum @pnum+1
set dnum @dnum+1
else
set pnum @first
set dnum 1
endif
set xd 607+((34-width(@dnum))/2)
color 126
text @xd 455 @dnum
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
goto input1
else
if @k==chr(80)$chr(1)||@k==chr(81)$chr(1) ;DOWNARROW or PGDN
color 0
rect 0 0 600 425
rect 607 455 637 470
if @pnum>@first
set pnum @pnum-1
set dnum @dnum-1
else
set pnum @last
set dnum @tnum
endif
set xd 607+((34-width(@dnum))/2)
color 126
text @xd 455 @dnum
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
goto input1
else
if @k==chr(101)||@k==chr(69)
pload edpaxit 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
input4:
waitkey
getkey k
if @k==chr(13)
exit
else
if @k==chr(27)
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
goto input1
else
goto input4
endif
endif
else
if @k==chr(103)||@k==chr(71)
again:
set qflag 0
pload ednum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
set str ""
set savx 290
set savy 215
getstr 3
set tmpnum left(@0,len(@0)-1)
if left(@tmpnum,1)==0&&len(@tmpnum)==3
set tmpnum mid(@tmpnum,2,len(@tmpnum)-1)
endif
if left(@tmpnum,1)==0&&len(@tmpnum)==2
set tmpnum right(@tmpnum,1)
endif
if left(@tmpnum,1)==0&&len(@tmpnum)==1
set tmpnum ""
endif
set qflag right(@0,1)
if @qflag==0
if @tmpnum>@tnum||@tmpnum==""
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
pload edwnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
input2:
waitkey
getkey k
if @k==chr(13)
goto again
else
goto input2
endif
else
set dnum @tmpnum
set pnum (@first-1)+@dnum
endif
color 0
rect 0 0 600 425
rect 607 455 637 470
set xd 607+((34-width(@dnum))/2)
color 126
text @xd 455 @dnum
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
goto input1
else
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
goto input1
endif
else
if @k==chr(104)||@k==chr(72)
set num 1
pload edpahelp 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
hlp1:
color 0
rect 115 310 485 140
fload ibm8 1
fgaps 1 4 2
set buf readfile(palbhlp$@num$.doc)
window 120 300 480 140
color 1
text @@buf
. farfree(@buf)
window
text 265 155 "Page "$@num$" of 2"
text 160 145 "Press <PGUP> for next or <PGDN> for prior."
ffree 1
hlp2:
waitkey
getkey k
if @k==chr(13)
pload "ep"$@pnum 1
set px (602-p1->xsize)/2
set py (428-p1->ysize)/2
putup @px @py p1
pfree 1
ffree 1
fload ibm16 1
goto input1
else
if @k==chr(73)$chr(1)||@k==chr(72)$chr(1)
if @num==2
set num 1
goto hlp1
else
set num @num+1
goto hlp1
endif
else
if @k==chr(81)$chr(1)||@k==chr(80)$chr(1)
if @num==1
set num 2
goto hlp1
else
set num @num-1
goto hlp1
endif
else
goto hlp2
endif
endif
endif
else
if @k==chr(109)||@k==chr(77)
clearscr 0
pload ebkg 1
palette 1
pfade 0 1
pfree 1
link @back
else
goto input1
endif
endif
endif
endif
endif
endif
waitkey
exit
getstr:
color 255
set space off
set a ""
; text @str
text @savx,@savy,@str
lp:
set a ""
cursor
waitkey
cursor
getkey a
if asc(@a)>=48&&len(@str)<3&&asc(@a)<=57
set str @str$@a
text @a
goto lp
else
if @a==chr(8)
if @str=="" ;;;;@len(@str)==0
goto lp
else
color 0
set cwd width(right(@str,1))
rect 290+width(@str)-@cwd @texty 290+width(@str) @texty+14
set lnstr len(@str)-1
set str left(@str,@lnstr)
goto getstr
endif
else
if @a==chr(13)
set qflag 0
goto dne1
else
if @a==chr(27)
set qflag 1
goto dne1
else
goto lp
endif
endif
endif
endif
dne1:
return @str$@qflag